<%@ page import="com.ws.utils.Res" %><%--
  Created by IntelliJ IDEA.
  User: lufei
  Date: 2025/3/22
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="${ pageContext.request.contextPath}/admin/bootstrap/css/bootstrap.min.css">
	<script src="${ pageContext.request.contextPath}/admin/bootstrap/js/jquery-2.1.0.min.js"></script>
	<script src="${ pageContext.request.contextPath}/admin/bootstrap/js/bootstrap.min.js"></script>
    <style>

       .cus-container{
           width: 1368px;
           margin: 50px auto;
       }
       #user-add .modal-content{
       	padding: 0 20px 20px;	
       }
       #user-edit .modal-content{
       	padding: 0 20px 20px;	
       }
       
    </style>
</head>
<body>

<div class="cus-container">
        <h2 style="text-align: center;color: #1b6d85">
            分类管理
        </h2>
        <div style="float: right;margin: 10px 0px;">
            <a class="btn btn-primary" href="${ pageContext.request.contextPath}/categorie/toAdd">添加分类</a>
        </div>
    </div>

       <table class="table table-bordered clearfix" id="friendlink-list">
        <thead>
        	<tr class="bg-primary">
	            <th>编号</th>
                <th>分类名称</th>
                <th>操作</th>
	        </tr> 
        </thead> 
        <tbody>
        <c:forEach items="${list}" var="category">
            <tr>
                <td>${category.categorie_id}</td>
                <td>${category.categorie_name}</td>
                <td>
                    <a href="${ pageContext.request.contextPath}/categorie/delete?id=${category.categorie_id}">删除</a>
                </td>
            </tr>
        </c:forEach>
         </tbody>
      </table>

 </div>
</body>
</html>